using System;
namespace Servlets.Utils
{
	public static class StringUtils
	{
		public static string ToHtml(this string self) {
			return self.Replace("\n", "<br/>");
		}
		
		public static string UrlEncode(this string self) {
			return Uri.EscapeUriString(self);
		}
		
		public static string UrlDecode(this string self) {
			return Uri.UnescapeDataString(self);
		}
	}
}

